<template>
    <div>
      <div class="title">热销推荐</div>
      <ul>
        <router-link to="/detail">
        <li class="item border-bottom">
            <img class="item-img" src='http://img1.qunarzz.com/sight/p0/1511/d2/d2aec2dfc5aa771290.water.jpg_140x140_abb362a7.jpg'/>
          <div class="item-info">
            <p class="item-title">白鹿原滑雪场</p>
            <p class="item-desc">西安专业级滑雪圣地</p>
            <button class="item-button">查看详情</button>
          </div>
        </li>
        </router-link>
      </ul>
      <ul>
        <router-link to="/detail">
        <li class="item border-bottom">
            <img class="item-img" src='http://img1.qunarzz.com/sight/p0/201308/23/b283071686e64dfec8d65eac.jpg_140x140_8c5a7c49.jpg'/>
          <div class="item-info">
            <p class="item-title">温都水城养生馆</p>
            <p class="item-desc">各种亚热带植物掩映其间仿佛置身热带雨林</p>
            <button class="item-button">查看详情</button>
          </div>
        </li>
        </router-link>
      </ul>
      <ul>
        <router-link to="/detail">
        <li class="item border-bottom">
            <img class="item-img" src='http://img1.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_140x140_80f63803.jpg'/>
          <div class="item-info">
            <p class="item-title">故宫</p>
            <p class="item-desc">东方宫殿建筑代表，世界宫殿建筑典范</p>
            <button class="item-button">查看详情</button>
          </div>
        </li>
        </router-link>
      </ul>
      <ul>
        <router-link to="/detail">
        <li class="item border-bottom">
            <img class="item-img" src='http://img1.qunarzz.com/sight/p0/201404/23/04b92c99462687fa1ba45c1b5ba4ad77.jpg_140x140_73fda71d.jpg'/>
          <div class="item-info">
            <p class="item-title">大连海洋世界</p>
            <p class="item-desc">浪漫大连，浪漫海洋世界</p>
            <button class="item-button">查看详情</button>
          </div>
        </li>
        </router-link>
      </ul>
    </div>
</template>

<script>
export default {
    name: 'HomeRecommend'
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/mixins.styl'
  .title
    margin-top: .2rem
    line-height: .4rem
    background: #eee
    text-indent: .2rem
    height: .5rem
  .item
    overflow: hidden
    display: flex
    height: 1.9rem
    .item-img
      width: 1.7rem
      height: 1.7rem
      padding: .1rem
    .item-info
      flex: 1
      padding: .1rem
      min-width: 0
      .item-title
        line-height: .54rem
        font-size: .32rem
        ellipsis()
      .item-desc
        line-height: .4rem
        color: #ccc
        ellipsis()
      .item-button
        line-height: .44rem
        margin-top: .16rem
        background: #ff9300
        padding: 0 .2rem
        border-radius: .06rem
        color: #fff
</style>